Creating a simple object

Many simple objects require no JavaScript; they contain only the HTML that is to be inserted into the document. For basic information about creating more complex objects using JavaScript, see Extending Dreamweaver: Basics.

To create a simple object:

1 Create a new blank document in a text editor (such as BBEdit or HomeSite).
You can use Dreamweaver's HTML Source inspector as your text editor, but first you must delete all the tags that appear in the HTML Source inspector when you create a new document.
2 Type or paste in the tags that you want this object to insert into your documents.
For example, type:
<P>&copy; 2000 DCD Productions, Inc.<BR>All Rights Reserved
</P>
3 Save the file.
If you want the new object to appear on one of the existing Object palette panels, save it in one of the Objects folders (Characters, Common, Forms, Frames, Head, or Invisibles). To create a new panel, create a new folder within the Configuration/Objects folder and save your file there. Additional folders inside any panel subfolder (such as folders created inside the Characters subfolder) are ignored.
4 In a graphics or image-editing application (such as Macromedia Fireworks), create an 18 x 18 pixel GIF image that will serve as the icon for your object in the Object palette.
If you create a larger image, Dreamweaver automatically scales it to 18 x 18 pixels. If you do not create an icon for your object, Dreamweaver inserts a generic object icon in the Object palette.
5 Give your icon the same file name as your object file and save the icon in the same directory as the object file.
For example, if your object is called Copyright_DCD.htm and you saved it in the Common directory, name your icon Copyright_DCD.gif and save it in the Common directory as well.
6 Relaunch Dreamweaver to use your new object. The object appears at the bottom of the Insert menu as well as on the Object palette.